<?php
	class User {
		private $username;
		private $password;
		private $birthDate;
		private $email;
			
		/* public function __construct($username, $password, $birthDate, $email) {
			if(is_string($username) && $username != "" && preg_match("/^[a-z0-9_-]{3,16}$/", $username) == 1) {
				$this->username = $username;
			}
			else {
				echo "Invalid Username!";
				return;
			}
			if(is_string($password) && $password != "" && preg_match("/^[a-z0-9_-]{3,16}$/", $password) == 1) {
				$this->password = sha1($password);
			}
			else {
				echo "Invalid Password!";
				return;
			}
			if(is_string($birthDate) && $birthDate != "") {
				$this->birthDate = $birthDate;
			}
			else {
				echo "Incorrect Birth Date!";
				return;
			}
			if(is_string($email) && $email != "" && preg_match("/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/", $email) == 1) {
				$this->email = $email;
			}
			else {
				echo "Incorrect Birth Date!";
				return;
			}
		}
 */		
		public function __construct($username, $password, $birthDate, $email) {
			$this->username = $username;
			$this->password = $password;
			$this->birthDate = $birthDate;
			$this->email = $email;
		}
		

		public function getUsername() {
			return $this->username;
		}
		public function getPassword() {
			return $this->password;
		}
		public function getBirthDate() {
			return $this->birthDate;
		}
		public function getEmail() {
			return $this->email;
		}
	
	}
?>